import { resolve } from "path"
import { readFileSync } from 'fs'
function fn() {
  const install = readFileSync(resolve(__dirname, './install.json'), { encoding: 'utf-8' });
  return {
    ...JSON.parse(install),
    // dbport: 27017,
    // dbname: 'test',
    // dbhost: `127.0.0.1`,
    backupsDir: resolve(__dirname, '../temp'),
    maxAge: 7 * 24 * 60,  // 秒
  }
}

export default fn()